treesorter tests: Add a comment
authorMatthias Clasen <mclasen@redhat.com>
Thu, 16 Jul 2020 12:49:38 +0000 (08:49 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 16 Jul 2020 16:14:28 +0000 (12:14 -0400)
This looks like a leak, but isn't one.
Add a comment to that effect.

testsuite/gtk/treesorter.c

index 6d1e314d3034e520a63af5e6962359f0d57c666f..59a32b5e252b698cd22bc7ea45640b1c7637c4a0 100644 (file)
@@ -69,6 +69,7 @@ model_to_string (GListModel *model)
       if (i > 0)
         g_string_append (string, " ");
       g_string_append_printf (string, "%u", get_with_parents (object));
+      /* no unref since get_with_parents consumes the ref */
     }
 
   return g_string_free (string, FALSE);